package com.gimi.cloud.bbp.manage.consumer.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.multipart.MultipartFile;

import com.gimi.cloud.bbp.common.utils.reqhead.Response;
import com.gimi.cloud.bbp.dto.prod.EcProdBrandDTO;

import feign.Headers;

/**
* 品牌管理相关Feign
* @author lixj
* @Description
* @create 2017-12-18
* @version 1.0
**/
@FeignClient(name = "bbp-manage-service")
public interface EcProdBrandFeignService {

    /***商品品类操作开始
     * @param ecProdBrandDTO***/
    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "brand/list", method = RequestMethod.POST)
    Response getBrandList(EcProdBrandDTO ecProdBrandDTO);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "brand/saveOrUpdate", method = RequestMethod.POST)
    Response saveOrUpdate(EcProdBrandDTO ecProdBrandDTO);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "brand/delete", method = RequestMethod.POST)
    Response brandDelete(EcProdBrandDTO ecProdBrandDTO);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "brand/pageList", method = RequestMethod.POST)
    Response getBrandPageList(EcProdBrandDTO ecProdBrandDTO);

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "brand/gotoEditProdBrand", method = RequestMethod.POST)
    Response gotoEditProdBrand(EcProdBrandDTO ecProdBrandDTO);

    @Headers({"Content-Type: mutipart/form-data","Accept: application/json"})
    @RequestMapping(value = "/brand/fileUpload", method = RequestMethod.POST)
    Response fileUpload(MultiValueMap<String, MultipartFile> multipartFiles);
    /***商品品类操作结束***/
}
